Automattic\WooCommerce\Blocks\BlockTypes\ProductQuery B

Total Complexity 89
Dependencies 5
Dependents 1
Total lines 887
Lines of code 486
Logical lines of code 183
Comment lines 297
Methods 28
Properties 6

Methods 28

Method Rating Maintainability Complexity Lines of code
get_global_query()
S
53 7 24
update_rest_query()
S
57 7 14
get_stock_status_query()
S
53 6 25
get_filter_by_price_query()
S
52 5 28
merge_queries()
S
52 5 27
get_filter_by_attributes_query()
S
49 4 35
array_merge_recursive_replace_non_array_properties()
S
58 5 17
get_filter_by_taxonomies_query()
S
58 5 14
get_filter_by_rating_query()
S
51 4 28
get_queries_by_custom_attributes()
S
59 5 13
get_product_visibility_query()
S
57 4 17
get_filter_by_stock_status_query()
S
54 3 24
update_query()
S
57 3 17
get_valid_query_vars()
S
51 2 30
build_query()
S
52 2 26
get_product_attributes_query()
S
54 2 23
get_filter_by_attributes_query_vars()
S
58 2 17
get_filter_by_keyword_query()
S
66 3 9
merge_tax_queries()
S
65 3 9
get_custom_orderby_query()
S
61 2 13
get_products_ids_by_attributes()
S
57 1 17
get_query_vars_from_filter_blocks()
S
59 1 15
is_woocommerce_variation()
S
73 2 4
extend_rest_query_allowed_params()
S
71 2 5
initialize()
S
62 1 12
get_queries_by_applied_filters()
S
67 1 8
set_query_vars()
S
65 1 10
get_on_sale_products_query()
S
74 1 5